<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<style type="text/css">
			* {
				margin: 0;
				padding: 0
			}

			#box {
				width: 300px;
				height: 300px;
				background-color: hotpink;
				position: absolute;
				display: none;
			}
		</style>
	</head>
	<body>
		<button type="button">弹出</button>
		<div id="box">

		</div>
	</body>
</html>
<script src="js/tools.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
	let oBtn = document.querySelector("button");
	let oBox = document.querySelector("#box");
	oBtn.onclick = function() {
		new Popup(oBox);
	}
</script>
